Template:Def only: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Daniel Mietchen
(switching position of definition and instructions)
Line 1: Line 1:
<includeonly><div align="left" border="0" style="background-color: #C4D2DF; margin:0em;position:relative;">This subpage is not part of a [[CZ:Cluster|cluster]] and has no [[CZ:Metadata|metadata]]. Click <span class="plainlinks"><nowiki></nowiki>[http://en.citizendium.org/wiki?action=edit&preload=Template%3ABlank_metadata&title=Template:{{BASEPAGENAMEE}}%2FMetadata here]<nowiki></nowiki></span> to create the metadata page if you want to expand this into a full-fledged article. </div><br>
<includeonly>{{#ifexist:{{BASEPAGENAME}}
{{#ifexist:{{BASEPAGENAME}}
                 |[[{{BASEPAGENAME}}{{!}}'''<font color=#111111>{{BASEPAGENAME}}</font>''']]
                 |[[{{BASEPAGENAME}}{{!}}'''<font color=#111111>{{BASEPAGENAME}}</font>''']]
                 |{{#ifexist:{{BASEPAGENAME}}/Definition
                 |{{#ifexist:{{BASEPAGENAME}}/Definition
Line 8: Line 7:
         |{{#ifexist: {{BASEPAGENAME}}/Definition
         |{{#ifexist: {{BASEPAGENAME}}/Definition
             |Rpl def1
             |Rpl def1
             |Rpl def3}} }}|1={{BASEPAGENAME}} }}}}</includeonly><noinclude>
             |Rpl def3}} }}|1={{BASEPAGENAME}} }}}}<br>
<div align="left" border="0" style="background-color: #C4D2DF; margin:0em;position:relative;">This subpage is not part of a [[CZ:Cluster|cluster]] and has no [[CZ:Metadata|metadata]]. Click <span class="plainlinks"><nowiki></nowiki>[http://en.citizendium.org/wiki?action=edit&preload=Template%3ABlank_metadata&title=Template:{{BASEPAGENAMEE}}%2FMetadata here]<nowiki></nowiki></span> to create the metadata page if you want to expand this into a full-fledged article. </div></includeonly><noinclude>
{{TlDoc}}</noinclude>
{{TlDoc}}</noinclude>

Revision as of 06:04, 24 March 2010


This documentation is transcluded from Template:Def only/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.