Template:Lemma: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Daniel Mietchen
(typo)
imported>Daniel Mietchen
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexist:{{BASEPAGENAME}}
[[Category:Lemma Cluster]]{{#ifeq:{{SUBPAGENAME}}|Definition
                |[[{{BASEPAGENAME}}{{!}}'''<font color=#111111>{{BASEPAGENAME}}</font>''']]
|{{Def only}}[[Category:Definition Subpages]][[Category:Lemma Definition Subpages]]
                |{{#ifexist:{{BASEPAGENAME}}/Definition
|{{lemma-title}}{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|<includeonly>[[Category:Lemma Article]]</includeonly>|[[Category:Lemma Subpage]]}}{{#ifeq:{{SUBPAGENAME}}|Related Articles|[[Category:Lemma Related Articles Subpage]]|<span class="plainlinks" style="font-size:0.8em;">{{#ifexist:{{BASEPAGENAME}}/Related Articles|&nbsp;[<nowiki></nowiki>[[{{BASEPAGENAME}}/Related Articles|{{H:title|Click on the ''r'' to display related articles!|r}}]]<nowiki></nowiki>]|&nbsp;[<nowiki></nowiki>[{{fullurl:{{BASEPAGENAME}}/Related_Articles|action=edit&preload=Template%3ARelated_Articles_start}} <font color=#8B0541>{{H:title|Click on the ''r'' to create the Related Articles page!|r}}</font>]<nowiki></nowiki>]}}</span>}}:&nbsp;{{ {{#ifexist: {{BASEPAGENAME}} (disambiguation)
                      |[http://en.citizendium.org/wiki?action=edit&preload=Template%3APreload_Article&title={{urlencode:{{BASEPAGENAME}}}} <font color=#8B0541>{{H:title|Click on this link to create a Lemma Article.|{{BASEPAGENAME}}}}</font>]
                      |[[{{BASEPAGENAME}}]]}} }}{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||[[Category:Lemma Other Subpage]]}}{{#ifeq:{{SUBPAGENAME}}|Related Articles|[[Category:Lemma Related Articles Subpage]]|<span class="plainlinks" style="font-size:0.8em;">{{#ifexist:{{BASEPAGENAME}}/Related Articles|&nbsp;[<nowiki></nowiki>[[{{BASEPAGENAME}}/Related Articles|{{H:title|Click on the ''r'' to display related articles!|r}}]]<nowiki></nowiki>]|&nbsp;[<nowiki></nowiki>[http://en.citizendium.org/wiki?action=edit&preload=Template%3ARelated_Articles_start&title={{urlencode:{{BASEPAGENAME}}}}/Related_Articles <font color=#8B0541>{{H:title|Click on the ''r'' to create the Related Articles page!|r}}</font>]<nowiki></nowiki>]}}</span>}}: {{#ifeq:{{SUBPAGENAME}}|Definition|[[Category:Lemma Definition Subpage]]|{{ {{#ifexist: {{BASEPAGENAME}} (disambiguation)
         |dabdef
         |dabdef
         |{{#ifexist: {{BASEPAGENAME}}/Definition
         |{{#ifexist: {{BASEPAGENAME}}/Definition
             |Rpl def1
             |Rpl def1
             |Rpl def3}} }}|1={{BASEPAGENAME}} }}}}<br/>
             |Rpl def3}} }}|1={{BASEPAGENAME}} }}  
<div align="left" border="0" style="background-color: #C4D2DF; margin:0em;position:relative;">This is a [[CZ:Lemma article|lemma article]], containing just a [[CZ:Definition|definition]] and optionally other [[CZ:Subpages|subpages]] ([[Special:PrefixIndex/{{BASEPAGENAME}}/|check]]), but no [[CZ:Metadata|metadata]]. <span class="plainlinks"><nowiki></nowiki>[http://en.citizendium.org/wiki?action=edit&preload=Template%3ABlank_metadata&title=Template:{{BASEPAGENAMEE}}%2FMetadata Create the metadata page]<nowiki></nowiki></span> if you want to expand this into a [[CZ:Article mechanics|full article]].</div>[[Category:Lemma Article]]<noinclude>{{TlDoc}}</noinclude>
<br/><br/>{{lemma-message}} }}<noinclude>{{TlDoc}}</noinclude>

Latest revision as of 02:44, 10 November 2010

Lemma [r]Add brief definition or description



This article contains just a definition and optionally other subpages (such as a list of related articles), but no metadata. Create the metadata page if you want to expand this into a full article.
This documentation is transcluded from Template:Lemma/doc (edit | history)

Usage

This template is used by the {{Subpages}} template. It is added to pages that belong to a Lemma Cluster, i.e. a Cluster without Metadata. The main page of a Lemma Cluster is in the class of Lemma Article, and its Subpages in Lemma Subpage. These are pages that can exist independently of an article or metadata.

This template adds a blue banner to the top of the page, alerting readers to the fact that they are not in a normal Cluster, as well as providing links to create the Metadata that makes the difference. In addition, it provides appropriate links from Lemma Subpages to the Lemma main page and displays the corresponding 'Definition' and 'Related Articles' subpages, as well as a link to check whether there are any other associated subpages.