Template:Def only: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(use as header on top of the def only and related articles only pages. Used in Template:Subpages)
 
imported>Daniel Mietchen
(streamlined)
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div align="left" border="0" style="background-color: #C4D2DF; margin:0em;position:relative;">This subpage is not part of a cluster and has no 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 [[CZ:Metadata|metadata]] page if you want to expand this into a full-fledged article. </div>
<includeonly>{{lemma-message}}<br/>
{{#ifexist:{{BASEPAGENAME}}
{{lemma-title}} {{#ifeq:{{SUBPAGENAME}}|Related Articles||<span class="plainlinks" style="font-size:0.8em;">{{#ifexist:{{BASEPAGENAME}}/Related Articles|[<nowiki></nowiki>[[{{BASEPAGENAME}}/Related Articles|{{H:title|Click on the ''r'' to display related articles!|r}}]]<nowiki></nowiki>]|[<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||{{ {{#ifexist: {{BASEPAGENAME}} (disambiguation)
                |[[{{BASEPAGENAME}}{{!}}'''<font color=#111111>{{BASEPAGENAME}}</font>''']]
        |dabdef
                |{{#ifexist:{{{1|}}}/Definition
        |{{#ifexist: {{BASEPAGENAME}}/Definition
                      |[http://en.citizendium.org/wiki?action=edit&preload=Template%3APreload_Article&title={{urlencode:{{BASEPAGENAME}}}} <font color=#8B0541>{{BASEPAGENAME}}</font>]
            |Rpl def1
                      |[[{{BASEPAGENAME}}]]}} }} {{#ifeq:{{SUBPAGENAME}}|Related Articles||<span class="plainlinks" style="font-size:0.8em;">{{#ifexist:{{BASEPAGENAME}}/Related Articles|[<nowiki></nowiki>[[{{BASEPAGENAME}}/Related Articles|{{H:title|Click on the ''r'' to display related articles!|r}}]]<nowiki></nowiki>]|[<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>}}: {{def|{{BASEPAGENAME}}}} <span class="plainlinks" style="font-size:0.8em;"><sup>[<nowiki></nowiki>[http://en.citizendium.org/wiki?title={{urlencode:{{BASEPAGENAME}}}}/Definition&action=edit {{H:title|Click on the ''e'' to edit the definition!|e}}]<nowiki></nowiki>]</sup></span><br>
            |Rpl def3}} }}|1={{BASEPAGENAME}} }}}}</includeonly><noinclude>
{{TlDoc}}</noinclude>

Latest revision as of 15:51, 28 April 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.