Difference between revisions of "Help:Style"

From XFamily - Children of God
m (Templates)
m (Code Snippets)
Line 19: Line 19:
  
 
==Code Snippets==
 
==Code Snippets==
 +
 +
===Quoting===
 +
 +
If you include excerpts from or the entire contents of documents, please place them within a <code>blockquote</code>. If there are quotes within the document, please ''also'' place them within a <code>blockquote</code>.
 +
 +
The following is an example of how this is done:
 +
 +
<pre>
 +
<div style="padding: 1em; margin: 10px; border: 2px dotted green;">
 +
<small><font color=green>1</font></small> The Devil hates...
 +
</div>
 +
</pre>
 +
 +
This would result in a border like this:
 +
 +
<div style="padding: 1em; margin: 10px; border: 2px dotted green;">
 +
<small><font color=green>1</font></small> The Devil hates...
 +
</div>
  
 
==Tools==
 
==Tools==

Revision as of 19:04, 10 June 2005

Introduction to Style Guide

Disclaimer

Pages displaying content from The Family should use a disclaimer. Please see the template section below for the approptiate template to use.

Templates

Templates exist Under "Templates:Foo". They are invoked in articles using the following syntax: {{foo}} which then displays the content of the template in the article at the position of the tag.

The following is a list of templates:

  • Template:Construction - {{Construction}} - For use in articles which do not need outside content contributions.
  • Template:Stub - {{Stub}} - For use in incomplete articles for which we are accepting outside content contributions.
  • Template:Disclaimer-family - {{Disclaimer-family}} - For use in articles from The Family which may contain offensive content.
  • Template:Disclaimer-article - {{Disclaimer-article}} - For use in articles reproduced herein "as is".
  • Template:Privacy-edited - {{Privacy-edited}} - For use in articles where a name has been removed.
  • Template:Public-Domain - {{Public-Domain}} - For use in editor's personal profiles should they wish to multi-liscense their contributions.

Code Snippets

Quoting

If you include excerpts from or the entire contents of documents, please place them within a blockquote. If there are quotes within the document, please also place them within a blockquote.

The following is an example of how this is done:

<div style="padding: 1em; margin: 10px; border: 2px dotted green;">
<small><font color=green>1</font></small> The Devil hates...
</div>

This would result in a border like this:

1 The Devil hates...

Tools

Bible Online

When linking to Bible verses use the following script. It will be updated to use a functional online reference resource should the current resource cease to function. Using this script allows us to easily update all Bible references in such a scenario.

The script is located at: http://www.xfamily.org/xscripts/bible/

You should add GET variables to the URL to redirect to a particular passage. See the example below.

http://www.xfamily.org/xscripts/bible/?book=Matthew&chapter=9&verse=17

Ranges are allowed. Please see the example below:

http://www.xfamily.org/xscripts/bible/?book=Matthew&chapter=9&verse=17-20

When a space exists in one of the variables you should use "%20" (no quotation marks) to represent the space. This is necessary with books like I John. Please see the example below:

http://www.xfamily.org/xscripts/bible/?book=I%20John&chapter=1&verse=1