Difference between revisions of "Template:CitePage"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Updating data... but will need second (null) update to refresh auto-included example)
m (Changement de catégorie.)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{ #ifeq: {{{Legend}}}|No| ====={{{Title}}}===== |{{DISPLAYTITLE:{{{Title}}}}}'''<big>Briefly</big>'''}} <!--> If Legend <> No, Title = DISPLAYTITLE and display of "Briefly". <-->  
 
{{ #ifeq: {{{Legend}}}|No| ====={{{Title}}}===== |{{DISPLAYTITLE:{{{Title}}}}}'''<big>Briefly</big>'''}} <!--> If Legend <> No, Title = DISPLAYTITLE and display of "Briefly". <-->  
 
 
{| cellspacing="0" cellpadding="4" border="2" style="border: 3px solid rgb(0, 85, 221); margin: 1em 1em 1em 0pt; border-collapse: collapse; width: 100%;"
 
{| cellspacing="0" cellpadding="4" border="2" style="border: 3px solid rgb(0, 85, 221); margin: 1em 1em 1em 0pt; border-collapse: collapse; width: 100%;"
|- align="left"
+
|- align="left" margin-top=30px margin-left=60px
| bgcolor="#abcdef" colspan="6" | {{Icon|{{{Module}}}|3|60}}<big>'''{{{Title}}}'''</big>
+
| bgcolor={{Color|{{{Module}}}}} colspan="6" | {{Icon|{{{Module}}}|3|60}}<big>'''{{{Title}}}'''</big>
 
|-
 
|-
| width="10%" bgcolor="#abcdef" | '''Description'''  
+
| width="10%" bgcolor={{Color|{{{Module}}}}} | '''Description'''  
 
| colspan="5" | {{{Description}}}
 
| colspan="5" | {{{Description}}}
 
|-
 
|-
| width="10%" bgcolor="#abcdef" | '''Plateform'''  
+
| width="10%" bgcolor={{Color|{{{Module}}}}} | '''Plateform'''  
 
| width="23%" | {{{OS}}}  
 
| width="23%" | {{{OS}}}  
| width="10%" bgcolor="#abcdef" | '''Module'''  
+
| width="10%" bgcolor={{Color|{{{Module}}}}} | '''Module'''  
 
| width="23%" | {{{Module}}}  
 
| width="23%" | {{{Module}}}  
| width="10%" bgcolor="#abcdef" | '''Status''' ([[Template:CitePage#Help|Help]])  
+
| width="10%" bgcolor={{Color|{{{Module}}}}} | '''Status''' ([[Template:CitePage#Help|Help]])  
 
| width="24%" | {{{Status}}}
 
| width="24%" | {{{Status}}}
 
|-
 
|-
| width="10%" bgcolor="#abcdef" | '''Author(s)'''  
+
| width="10%" bgcolor={{Color|{{{Module}}}}} | '''Author(s)'''  
 
| colspan="3" | {{{Authors}}}  
 
| colspan="3" | {{{Authors}}}  
| width="10%" bgcolor="#abcdef" | '''Date'''  
+
| width="10%" bgcolor={{Color|{{{Module}}}}} | '''Date'''  
 
| {{{Date}}}
 
| {{{Date}}}
 
|-
 
|-
| width="10%" bgcolor="#abcdef" | '''Address'''  
+
| width="10%" bgcolor={{Color|{{{Module}}}}} | '''Address'''  
 
| colspan="5" | <center>{{{Link}}}</center>
 
| colspan="5" | <center>{{{Link}}}</center>
|}
+
|}<noinclude>
  
<noinclude> __NOTOC__
 
 
[[fr:Template:FR/CitePage]]
 
[[fr:Template:FR/CitePage]]
 
{{Spacer|60}}
 
{{Spacer|60}}
 
This template is inspired from [[Template:Specification_Header]] and [http://en.wikipedia.org/wiki/Wikipedia:Template_messages/Sources_of_articles#these examples of WikiPedia]. Many thanks to authors.
 
This template is inspired from [[Template:Specification_Header]] and [http://en.wikipedia.org/wiki/Wikipedia:Template_messages/Sources_of_articles#these examples of WikiPedia]. Many thanks to authors.
  
While inspired from a header, I think first it would be better as a footer.  
+
While inspired from a header, I think first it would be better as a footer. Use it at your own taste :-)
<!-- Bien qu'inspiré d'un "header", il se sent mieux en pied de page ;-) -->
 
  
 
Because additionnals comments (outside the template) could be rare and they could be best shown in the top of the page.
 
Because additionnals comments (outside the template) could be rare and they could be best shown in the top of the page.
Line 39: Line 36:
 
:Thanks in advance / Feel free to correct my mistakes, in spellchecking and... semantic, well... sense.
 
:Thanks in advance / Feel free to correct my mistakes, in spellchecking and... semantic, well... sense.
  
</noinclude>
 
  
<noinclude>
+
== Help ==
 +
* [[Template_talk:CitePage|More in the talk page...]]
 +
; Parameters not yet used : An example with the (French) forum...
 +
* The pasted link from the original page is : http://user.services.openoffice.org/fr/forum/viewtopic.php?f=29&t=6460
 +
:Site=fr:Forum (this value could reflect to the left part of the adress, in this case http://user.services.openoffice.org/fr/forum) 
 +
:SiteCode=6460 (and with this value, concat like this: http://user.services.openoffice.org/fr/forum/ftopic6460.html )
 +
It could be a manner of restricting usage to only referenced site. However I forget it for now, just keeping "footprints" of such possibility.
 +
 
 +
=== Address ===
 +
Set to the actual link(s) of the page or file. In this last case, you should also set the file type and size.
 +
 
 +
=== Authors ===
 +
Enter here the name of author(s), coma separated.
 +
 
 +
=== Date ===
 +
Set to last update of the document, in the format YYYY-MM-DD, ten characters with the two "-".
 +
 
 +
=== Description ===
 +
Enter a short document description, or paste the very first lines of introduction. It's often the largest part.
 +
 
 +
=== Legend ===
 +
If set to '''No''', template don't insert ''[[#Title|Title]]'' in the DISPLAYTITLE command but in a h5 heading, to be included more than once in a page...
 +
 
 +
=== Module ===
 +
Eight values :
 +
<center>
 +
{| border="1" widht=100%
 +
|+ Two templates [[Template:Icon|Icon]] and [[Template:Color|Color]] assign (dynamiquement) icon and color.
 +
|- align: "center" bgcolor="#FFFFDD"
 +
| Base || Calc || Draw || General || Impress || Math || Wiki || Writer
 +
|-
 +
| bgcolor={{Color| Base}} | {{Icon| Base |5|60}}
 +
| bgcolor={{Color| Calc}} | {{Icon| Calc |5|60}}
 +
| bgcolor={{Color| Draw}} | {{Icon| Draw |5|60}}
 +
| bgcolor={{Color| General}} | {{Icon| General |5|60}}
 +
| bgcolor={{Color| Impress}} | {{Icon| Impress |5|60}}
 +
| bgcolor={{Color| Math}} | {{Icon| Math |5|60}}
 +
| bgcolor={{Color| Wiki}} | {{Icon| Wiki |5|60}}
 +
| bgcolor={{Color| Writer}} | {{Icon| Writer |5|60}}
 +
|-
 +
|}</center>
 +
 
 +
=== OS ===
 +
Legended "Plateform", default value = All (to implement)
 +
 
 +
=== Status ===
 +
{| cellpadding="10"
 +
|-
 +
! Préliminary
 +
| Draft stage / Not finalized
 +
|-
 +
! Standard
 +
| Stable.
 +
|-
 +
! Obsolete
 +
| This doc is outdated. Perhaps need to precise more... need three more "version" parameters
 +
|}
 +
 
 +
=== Title ===
 +
Depend on Legend. If Legend is set to Yes then the value will be duplicate in the command DISPLAYTITLE. If set to No it's only reported in the table heading.
 +
<!-->Il ressort deux fois, dans la légende de la page (DISPLAYTITLE) et dans l'en-tête du tableau récapitulatif.<-->
  
 
== Example ==
 
== Example ==
Line 49: Line 105:
 
|Authors=Pierre-Yves Samyn
 
|Authors=Pierre-Yves Samyn
 
|Description=Questions fréquentes sur la mise en oeuvre de Base.  
 
|Description=Questions fréquentes sur la mise en oeuvre de Base.  
Les exemples présentés ici n'utilisent volontairement aucune macro.  
+
Les exemples présentés ici n'utilisent volontairement aucune macro. <br>
 
 
 
Really valuable French example for getting started :-)
 
Really valuable French example for getting started :-)
 
|Module=Base
 
|Module=Base
Line 66: Line 121:
 
|Authors=Pierre-Yves Samyn
 
|Authors=Pierre-Yves Samyn
 
|Description=Questions fréquentes sur la mise en oeuvre de Base.  
 
|Description=Questions fréquentes sur la mise en oeuvre de Base.  
Les exemples présentés ici n'utilisent volontairement aucune macro.  
+
Les exemples présentés ici n'utilisent volontairement aucune macro. <br>
 
Really valuable French example for getting started :-)
 
Really valuable French example for getting started :-)
 
|Module=Base
 
|Module=Base
Line 76: Line 131:
 
|Link=http://user.services.openoffice.org/fr/forum/ftopic6460.html
 
|Link=http://user.services.openoffice.org/fr/forum/ftopic6460.html
 
}}
 
}}
 
----
 
 
 
__TOC__
 
 
== Help ==
 
At this time you can only include one instance per page. [[Template_talk:CitePage|More in the talk page...]]
 
 
; Parameters not yet used
 
:Site=fr:Forum (this value could reflect to the left part of the adress) <!--> (il faudrait que cette valeur provoque un lien vers le forum) <-->
 
:SiteCode=6460 (and with this one concat like this: http://user.services.openoffice.org/fr/forum/ftopic6460.html ) <!--> (et que celle-ci recompose l'adresse sous la forme ... )  <-->
 
 
=== Title ===
 
Depend on Legend. If Legend is set to Yes then the value will be duplicate in the command DISPLAYTITLE. If set to No it's only reported in the table heading.
 
<!-->Il ressort deux fois, dans la légende de la page (DISPLAYTITLE) et dans l'en-tête du tableau récapitulatif.<-->
 
 
=== OS ===
 
Legended "Plateform", default value = All
 
<!-->La légende de ce paramètre est ''Plate-forme'', et devrait donc par défaut être sur "Toutes"...<-->
 
 
=== Statut ===
 
; Préliminary
 
: Draft stage / Not finalized
 
; Standard
 
: Stable.
 
; Obsolete
 
: This doc is outdated. Perhaps need to precise more Ce document n'est plus maintenant nécessaire, ou ne correspond plus à la version courante de {{OOo}}.
 
 
 
</noinclude>  
 
</noinclude>  
  
<noinclude>[[Category:FR/Modeles]]  
+
<noinclude>[[Category:FR/Modeles_Wiki|Citation]]  
[[Category:Templates_for_links]] </noinclude>
+
[[Category:Templates_for_links]]  
 +
{{PDL1}} </noinclude>

Latest revision as of 11:56, 5 June 2009

{{ #ifeq: {{{Legend}}}|No| ====={{{Title}}}===== |Briefly}}

bgcolor="#{{#switch:{{{Module}}} Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0
[[Image: {{ #switch:{{{Module}}}
Base = Base Calc = Calc Draw = Draw Impress = Impress Math = Math Writer = Writer Book Livre Wiki = Book Edit }}.png|60px]]


{{{Title}}}

width="10%" bgcolor="#{{#switch:{{{Module}}} Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Description {{{Description}}}
width="10%" bgcolor="#{{#switch:{{{Module}}} Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Plateform {{{OS}}} width="10%" bgcolor="#{{#switch:{{{Module}}} Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Module {{{Module}}} width="10%" bgcolor="#{{#switch:{{{Module}}} Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Status (Help) {{{Status}}}
width="10%" bgcolor="#{{#switch:{{{Module}}} Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Author(s) {{{Authors}}} width="10%" bgcolor="#{{#switch:{{{Module}}} Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Date {{{Date}}}
width="10%" bgcolor="#{{#switch:{{{Module}}} Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Address
{{{Link}}}

This template is inspired from Template:Specification_Header and examples of WikiPedia. Many thanks to authors.

While inspired from a header, I think first it would be better as a footer. Use it at your own taste :-)

Because additionnals comments (outside the template) could be rare and they could be best shown in the top of the page.


It's actually in a draft stage...
My english writing too. ;-)
Thanks in advance / Feel free to correct my mistakes, in spellchecking and... semantic, well... sense.


Help

Parameters not yet used
An example with the (French) forum...
Site=fr:Forum (this value could reflect to the left part of the adress, in this case http://user.services.openoffice.org/fr/forum)
SiteCode=6460 (and with this value, concat like this: http://user.services.openoffice.org/fr/forum/ftopic6460.html )

It could be a manner of restricting usage to only referenced site. However I forget it for now, just keeping "footprints" of such possibility.

Address

Set to the actual link(s) of the page or file. In this last case, you should also set the file type and size.

Authors

Enter here the name of author(s), coma separated.

Date

Set to last update of the document, in the format YYYY-MM-DD, ten characters with the two "-".

Description

Enter a short document description, or paste the very first lines of introduction. It's often the largest part.

Legend

If set to No, template don't insert Title in the DISPLAYTITLE command but in a h5 heading, to be included more than once in a page...

Module

Eight values :

Two templates Icon and Color assign (dynamiquement) icon and color.
Base Calc Draw General Impress Math Wiki Writer
bgcolor="#{{#switch: Base Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0
[[Image: {{ #switch: Base
Base = Base Calc = Calc Draw = Draw Impress = Impress Math = Math Writer = Writer Book Livre Wiki = Book Edit }}.png|60px]]


bgcolor="#{{#switch: Calc Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0
[[Image: {{ #switch: Calc
Base = Base Calc = Calc Draw = Draw Impress = Impress Math = Math Writer = Writer Book Livre Wiki = Book Edit }}.png|60px]]


bgcolor="#{{#switch: Draw Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0
[[Image: {{ #switch: Draw
Base = Base Calc = Calc Draw = Draw Impress = Impress Math = Math Writer = Writer Book Livre Wiki = Book Edit }}.png|60px]]


bgcolor="#{{#switch: General Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0
[[Image: {{ #switch: General
Base = Base Calc = Calc Draw = Draw Impress = Impress Math = Math Writer = Writer Book Livre Wiki = Book Edit }}.png|60px]]


bgcolor="#{{#switch: Impress Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0
[[Image: {{ #switch: Impress
Base = Base Calc = Calc Draw = Draw Impress = Impress Math = Math Writer = Writer Book Livre Wiki = Book Edit }}.png|60px]]


bgcolor="#{{#switch: Math Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0
[[Image: {{ #switch: Math
Base = Base Calc = Calc Draw = Draw Impress = Impress Math = Math Writer = Writer Book Livre Wiki = Book Edit }}.png|60px]]


bgcolor="#{{#switch: Wiki Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0
[[Image: {{ #switch: Wiki
Base = Base Calc = Calc Draw = Draw Impress = Impress Math = Math Writer = Writer Book Livre Wiki = Book Edit }}.png|60px]]


bgcolor="#{{#switch: Writer Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0
[[Image: {{ #switch: Writer
Base = Base Calc = Calc Draw = Draw Impress = Impress Math = Math Writer = Writer Book Livre Wiki = Book Edit }}.png|60px]]


OS

Legended "Plateform", default value = All (to implement)

Status

Préliminary Draft stage / Not finalized
Standard Stable.
Obsolete This doc is outdated. Perhaps need to precise more... need three more "version" parameters

Title

Depend on Legend. If Legend is set to Yes then the value will be duplicate in the command DISPLAYTITLE. If set to No it's only reported in the table heading.

Example

Calling Template
Please feel free to choose an (English) more pertinent example...
{{CitePage|Title=Débuter à partir d'une application exemple commentée.
|Legend=No (prevent from DISPLAYTITLE and give level h5 to title - Normally for tutorials acting as "doubles")
|Authors=Pierre-Yves Samyn
|Description=Questions fréquentes sur la mise en oeuvre de Base. 
Les exemples présentés ici n'utilisent volontairement aucune macro. <br>
Really valuable French example for getting started :-)
|Module=Base
|Date=2007-09-10
|Status=Standard
|OS=Toutes
|Site=fr:Forum (this value could contain the left part of the adress) 
|SiteCode=6460 (and with this one concat like this: http://user.services.openoffice.org/fr/forum/ftopic6460.html ) 
|Link=http://user.services.openoffice.org/fr/forum/viewtopic.php?f=29&t=6460 is the result of Copying link, right-clicking in Firefox.
}}
Résult

{{ #ifeq: No|No| =====Débuter à partir d'une application exemple commentée.===== |Warning: Display title "Débuter à partir d'une application exemple commentée." overrides earlier display title "{{{Title}}}".Briefly}}

bgcolor="#{{#switch:Base Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0
[[Image: {{ #switch:Base
Base = Base Calc = Calc Draw = Draw Impress = Impress Math = Math Writer = Writer Book Livre Wiki = Book Edit }}.png|60px]]


Débuter à partir d'une application exemple commentée.

width="10%" bgcolor="#{{#switch:Base Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Description Questions fréquentes sur la mise en oeuvre de Base.

Les exemples présentés ici n'utilisent volontairement aucune macro.
Really valuable French example for getting started :-)

width="10%" bgcolor="#{{#switch:Base Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Plateform Toutes width="10%" bgcolor="#{{#switch:Base Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Module Base width="10%" bgcolor="#{{#switch:Base Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Status (Help) Standard
width="10%" bgcolor="#{{#switch:Base Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Author(s) Pierre-Yves Samyn width="10%" bgcolor="#{{#switch:Base Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Date 2007-09-10
width="10%" bgcolor="#{{#switch:Base Base = cc9999 Calc = 9ebc00 Draw = ffcf26 General = c2b0e5 Impress = f26a00 Math = 9db6c8 Wiki = ffffaa Writer = a4cef0 Address
http://user.services.openoffice.org/fr/forum/ftopic6460.html
Content on this page is licensed under the Public Documentation License (PDL).



Personal tools
In other languages