Template:MasterHeader

From Gospel Translations

(Difference between revisions)
Jump to:navigation, search
(Undo revision 10670 by Mahra (Talk))
Line 1: Line 1:
 +
<noinclude>
 +
 +
This is a template that combines the Language Bar, Resource Info Box, and general categorization all into one package. To use it, you'll just include the code below at the top of your page. Please note that this is the version you would include on English pages.
 +
 +
'''The text below is an example template for a Desiring God article, "The Pleasure of God in His Son". To use the template for other articles, just change out the values after the equal signs.'''
 +
 +
<div style="font-family: Courier New; font-size: 9; margin-left: 15px; padding: 4px; border: 1px solid #ddd">
 +
{{MasterHeader<br>
 +
|author= John Piper<br>
 +
|secondauthor= None<br>
 +
|partnerurl= http://www.desiringgod.org<br>
 +
|partner= Desiring God<br>
 +
|topic= God (see [[GospelTranslations:Topics_and_subtopics|topic list]] for instructions)<br>
 +
|subtopic= Jesus Christ (see [[GospelTranslations:Topics_and_subtopics|topic list]] for instructions)<br>
 +
|mediatype= Article (other options are "Book" for a table of contents; or "Chapter" for any other part of a book)<br>
 +
|lang= English (please enter the English term for the language, i.e. "German" not "Deutsch"<br>
 +
|editor= n/a (your user ID if you are the reviewer)<br>
 +
|translator= n/a (your user ID if you are the translator)<br>
 +
|levels= 0 (for English content, leave this at 0. for translated content, enter the number of / symbols in the page's address after gospeltranslations.org/wiki/)<br>
 +
|reviewed= Not Reviewed (always use this for new material)<br>
 +
|newtitle= The Pleasure of God in His Son (if the page is translated, enter the translated title here)<br>
 +
|series = The Pleasures of God (if you don't know, please ask us)<br>
 +
|year= 1995<br>
 +
|month= January<br>
 +
|day= 1<br>
 +
}}
 +
</div>
 +
 +
That will take care of it!</noinclude><includeonly>
 +
<div id="MasterHeader">
{{Languages|{{#titleparts:{{PAGENAME}}|{{{levels}}}}}}}
{{Languages|{{#titleparts:{{PAGENAME}}|{{{levels}}}}}}}
-
<center>
+
<div style="float:right">
-
{| width="75%" style="border: 1px solid rgb(170, 170, 170); margin: 0pt 1px; padding: 0.2em; clear: both; border-collapse: collapse; font-size: 13px; font-family: Verdana,Arial,Helvetica,sans-serif;"
+
<table style="border: 1px solid rgb(148, 148, 148); margin: 10px 0pt 10px 10px; padding: 3px 4px 5px 4px; background-color: rgb(233, 242, 254); color: rgb(51, 51, 51); font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10px; line-height: 13px; width: 200px;" cellspacing="0" cellpadding="0">
-
|- valign="top" style="background-color: rgb(248, 248, 248);"
+
<tr>
-
| style="padding: 5px; background-color: orange; text-align: center; width: 10px;" | &nbsp;
+
<td colspan="2" style="padding: 10px 0; text-align:center"><font style="font-size: 12px; font-weight: bold;">About This {{{mediatype}}}</font></td>
-
| valign="middle" style="padding-left: 10px; text-align: left;" | The <nowiki>{{MasterHeader}}</nowiki> template is no longer in use. Please switch to the '''[[:Template:Info|<nowiki>{{Info}}</nowiki> template]]''' instead. Thank you!
+
</tr>
-
|}
+
<tr>
-
</center>  
+
<td valign="top" width="75"><strong>Publisher:</strong></td>
-
<includeonly>[[Category:Missing from database]]</includeonly>
+
<td valign="top">[[:Category:{{{partner}}}{{!}}{{{partner}}}]]</td>
 +
</tr>
 +
<tr>
 +
<td valign="top"><strong>Authors:</strong></td>
 +
<td valign="top">[[:Category:{{{author}}}|{{{author}}}]] {{ #switch: {{lc:{{{secondauthor|None}}}}} | none=&nbsp; | and [[:Category:{{{secondauthor}}}{{!}}{{{secondauthor}}}]] }}</td>
 +
</tr>
 +
<tr>
 +
<td valign="top"><strong>{{#switch:{{lc:{{{mediatype}}}}}|article=Series|Book}}:</strong></td>
 +
<td valign="top">
 +
{{#ifeq: {{{series|None}}}|None|None|[[:Category:{{{series}}}{{!}}{{{series}}}]]}}</td>
 +
</tr>
 +
<tr>
 +
<td valign="top"><strong>Topic:</strong></td>
 +
<td valign="top">{{#ifeq: {{{topic|None}}} | None | [[:Category:{{{categorytopic}}}|{{{categorytopic}}}]] | [[:Category:{{{topic}}}|{{{topic}}}]]}}
 +
</td>
 +
</tr>
 +
<tr>
 +
<td valign="top"><strong>Subtopic:</strong></td>
 +
<td valign="top">{{#ifeq: {{{subtopic|None}}} | None | None | [[:Category:{{{subtopic}}}|{{{subtopic}}}]]}}
 +
</td>
 +
</tr>
 +
<!-- ### START new topic with catswitch
 +
<tr>
 +
<td valign="top"><strong>Topic:</strong></td>
 +
<td valign="top">{{#ifeq: {{{lang}}} | English | [[:Category:{{{topic{{!}}None}}}{{!}}{{{topic{{!}}None}}}]] | [[:Category:{{Catswitch/{{#titleparts:{{PAGENAME}}|{{{levels}}}|{{#expr: {{{levels}}} +1 }}}}|{{{topic}}}}}{{!}}{{Catswitch/{{#titleparts:{{PAGENAME}}|{{{levels}}}|{{#expr: {{{levels}}} +1 }}}}|{{{topic}}}}}]]}}
 +
</td>
 +
</tr>
 +
<tr>
 +
<td valign="top"><strong>Subtopic:</strong></td>
 +
<td valign="top">{{#ifeq: {{{lang}}} | English | [[:Category:{{{subtopic{{!}}None}}}{{!}}{{{subtopic{{!}}None}}}]] |
 +
[[:Category:{{Catswitch/{{#titleparts:{{PAGENAME}}|{{{levels}}}|{{#expr: {{{levels}}} +1 }}}}|{{{subtopic}}}}}{{!}}{{Catswitch/{{#titleparts:{{PAGENAME}}|{{{levels}}}|{{#expr: {{{levels}}} +1 }}}}|{{{subtopic}}}}}]] }}
 +
</td>
 +
</tr>
 +
### END new topic with catswitch-->
 +
<tr>
 +
<td valign="top" style="padding-bottom: 4px;"><strong>Date:</strong></td>
 +
<td valign="top" style="padding-bottom: 4px;">{{#ifeq:{{{date|None}}}|None|{{{day}}} {{{month}}} {{{year}}}|{{{date}}}}}</td>
 +
</tr>
 +
<!--
 +
######## Start translation info
 +
-->
 +
<tr>
 +
<td valign="top" style="border-top: 1px solid #999; padding-top: 4px; margin-top: 4px;"><strong>Status:</strong></td>
 +
<td valign="top" style="border-top: 1px solid #999; padding-top: 4px; margin-top: 4px;">{{{reviewed|Not Reviewed}}}</td>
 +
</tr>
 +
<tr>
 +
<td valign="top"><strong>Translator:</strong></td>
 +
<td valign="top">{{#ifeq: {{{lang}}} | English | None|[[User:{{{translator|n/a}}}{{!}}{{{translator|n/a}}}]]}}</td>
 +
</tr>
 +
<tr>
 +
<td style="padding-bottom: 4px;"><strong>Editor:</strong></td>
 +
<td style="padding-bottom: 4px;">{{#ifeq: {{{lang}}} | English | None|[[User:{{{editor|n/a}}}{{!}}{{{editor|n/a}}}]]}}</td>
 +
</tr>
 +
<!--
 +
######## START New chapter navigation
 +
 
 +
<tr>
 +
<td colspan="2" valign="top" style="border-top: 1px solid #999; padding-top: 4px; margin-top: 4px;"><center><strong>Related Resources</strong></center>
 +
{{#dpl:
 +
|category={{#ifeq: {{{series|None}}} | None | {{{topic}}} | {{{series}}}}}
 +
|category={{{lang}}}
 +
|include={MasterHeader}:newtitle
 +
|ordermethod=title
 +
|count={{#ifeq: {{{mediatype}}} | Article | 10 | 40}}
 +
|format=,,<br>,
 +
|secseparators=[[%PAGE%|,]]fckLR}}
 +
</td>
 +
</tr>
 +
 
 +
######## END New chapter navigation
 +
-->
 +
</table>
 +
</div>
 +
{{#ifeq: {{{reviewed}}} | Final Version | [[Category:Final Version]]}}
 +
{{#ifeq:{{{categorytopic|None}}}|None| |[[Category:{{{categorytopic}}}]]}}
 +
{{#ifeq:{{{topic|None}}}|None| |[[Category:{{{topic}}}]]}}
 +
[[Category:{{{subtopic|Missing Subtopic}}}]]
 +
[[Category:{{{author|Missing Author}}}]]
 +
[[Category:{{{partner|Missing Publisher}}}]]
 +
[[Category:{{{lang}}}]]
 +
[[Category:{{{mediatype}}}]]
 +
{{#ifeq: {{{series|None}}}|None| |[[Category:{{{series}}}]]}}
 +
 
 +
<!------###### Needs Review template
 +
{{ #ifeq: {{#language:{{#titleparts:{{PAGENAME}}|{{{levels}}}|{{#expr: {{{levels}}} +1 }}}}}} | English | |{{ #ifeq: {{{reviewed}}} | Final Version | | {{ #ifeq: {{{reviewed}}} | Peer Reviewed | {{PeerReviewed}} | {{NeedsReview}}}}}}}}
 +
#########-->
 +
{{ #ifeq: {{{newtitle|empty}}} | empty | | {{#ifeq: {{{lang}}} | Arabic | <div style="direction:rtl;"><br><h2 id="tTitle">{{{newtitle}}}</h2></div>|<br><h2 id="tTitle">{{{newtitle}}}</h2> }} }}  
 +
</div>
 +
</includeonly><noinclude>[[Category:Templates]]</noinclude>

Revision as of 15:55, 31 July 2008


This is a template that combines the Language Bar, Resource Info Box, and general categorization all into one package. To use it, you'll just include the code below at the top of your page. Please note that this is the version you would include on English pages.

The text below is an example template for a Desiring God article, "The Pleasure of God in His Son". To use the template for other articles, just change out the values after the equal signs.

{{MasterHeader
|author= John Piper
|secondauthor= None
|partnerurl= http://www.desiringgod.org
|partner= Desiring God
|topic= God (see topic list for instructions)
|subtopic= Jesus Christ (see topic list for instructions)
|mediatype= Article (other options are "Book" for a table of contents; or "Chapter" for any other part of a book)
|lang= English (please enter the English term for the language, i.e. "German" not "Deutsch"
|editor= n/a (your user ID if you are the reviewer)
|translator= n/a (your user ID if you are the translator)
|levels= 0 (for English content, leave this at 0. for translated content, enter the number of / symbols in the page's address after gospeltranslations.org/wiki/)
|reviewed= Not Reviewed (always use this for new material)
|newtitle= The Pleasure of God in His Son (if the page is translated, enter the translated title here)
|series = The Pleasures of God (if you don't know, please ask us)
|year= 1995
|month= January
|day= 1
}}

That will take care of it!

Navigation
Volunteer Tools
Other Wikis
Toolbox