Template:MasterHeader

From Gospel Translations

(Difference between revisions)
Jump to:navigation, search
 
(10 intermediate revisions not shown)
Line 1: Line 1:
-
<noinclude>
+
<center>
-
 
+
{| width="500" style="border: 1px solid rgb(170, 170, 170); margin: 0pt 1px; padding: 0.2em; clear: both; border-collapse: collapse; font-size: 12px; font-family: Verdana,Arial,Helvetica,sans-serif;"
-
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.
+
|- valign="top" style="background-color: rgb(248, 248, 248);"
-
 
+
| style="padding: 5px; background-color: rgb(25, 127, 227); text-align: center; width: 10px;" | &nbsp;
-
<nowiki>
+
| style="padding-left: 10px; text-align: left;" |  
-
{{MasterHeader
+
'''Notice:''' This template is no longer in use. Please use '''<code>[[Template:Info|<nowiki>{{Info}}</nowiki>]]</code>''' instead.
-
|author= (enter the name/s of the author/s)
+
|}
-
|secondauthor= if there is one...
+
</center>
-
|partnerurl= (the website address for the publisher or copyright holder)
+
-
|partner= (the name of the publisher or copyright holder)
+
-
|topic= (the main topic of this article)
+
-
|subtopic= next topic down in the hierarchy
+
-
|mediatype= (book-for the table of contents, chapter-for parts of a book, article, or sermon)
+
-
|lang= (English, Spanish, etc.)
+
-
|editor= (this is the person who reviews the translation)
+
-
|translator= (translators name or user id)
+
-
|levels= (the number of forward slashes (/'s) in the page title (the part of the URL ''after''
+
-
gospeltranslations.org/wiki/)
+
-
|reviewed=Not Reviewed
+
-
|newtitle=(the title (English or translated) of the article)
+
-
|series = the set/book this resource belongs to
+
-
|year=
+
-
|month= (the word, like December)
+
-
|day= (the number, like 21)
+
-
}}
+
-
</nowiki>
+
-
 
+
-
That will take care of it!
+
-
 
+
-
</noinclude><includeonly>
+
-
<div id="MasterHeader">
+
-
{{Languages|{{#titleparts:{{PAGENAME}}|{{{levels}}}}}}}
+
-
<div style="float:right">
+
-
<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">
+
-
  <tr>
+
-
    <td colspan="2" style="padding: 10px 0; text-align:center"><font style="font-size: 12px; font-weight: bold;">About This {{{mediatype}}}</font></td>
+
-
  </tr>
+
-
  <tr>
+
-
    <td valign="top" width="75"><strong>Publisher:</strong></td>
+
-
    <td valign="top">[[:Category:{{{partner}}}{{!}}{{{partner}}}]]</td>
+
-
  </tr>
+
-
  <tr>
+
-
    <td valign="top"><strong>Authors:</strong></td>
+
-
    <td valign="top">[[:Category:{{{author}}}{{!}}{{{author}}}]] {{#ifeq:{{{secondauthor|Blank}}}|Blank|&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=titlefckLR|count={{#ifeq: {{{mediatype}}} | Article | 10 | 40}}
+
-
|format=,,<br>,
+
-
|secseparators=[[%PAGE%|,]]
+
-
}}
+
-
</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>
+

Current revision as of 20:32, 19 August 2008

 

Notice: This template is no longer in use. Please use {{Info}} instead.

Navigation
Volunteer Tools
Other Wikis
Toolbox