Difference between revisions of "tags"

From GeneWeb
Jump to: navigation, search
m (A2 moved page Tags to tags: minuscule)
m (aération)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:HTML tags}}
 
{{DISPLAYTITLE:HTML tags}}
 
{{languages|Tags}}
 
{{languages|Tags}}
Within notes, it is possible to insert '''HTML tags''' which will be passed on to the resulting page. GeneWeb needs to be made aware of these tags, and as a result, will accept only those tags listed in a {{c|bases/tags.txt}} file. Tags are listed one per line and designate both the “opening” and “closing” tags.
+
Within notes, it is possible to insert '''HTML tags''' which will be passed on to the resulting page. GeneWeb needs to be made aware of these tags, and as a result, will accept only those tags listed in a {{c|tags.txt}} file.  
  
The tags file can be passed to gwd at launch through the [[man#Starting a GeneWeb server (gwd)|{{c|-tags}} parameter]].
+
Tags are listed one per line, with no trailing space, and designate both the “opening” and “closing” tags.
 +
 
 +
GeneWeb's code contains a default list of allowed tags, but the {{c|tags.txt}} file must contain all concerned tags, not just additionnal tags.
  
Example:
 
 
<pre>
 
<pre>
 
a
 
a
audio
+
area
 
b
 
b
base
 
 
blockquote
 
blockquote
 
br
 
br
embed
+
center
field
+
cite
 +
dd
 +
dir
 +
div
 +
dl
 +
dt
 +
em
 
font
 
font
foot
 
h3
 
 
hr
 
hr
 +
h1
 +
h2
 +
h3
 +
h4
 +
h5
 +
h6
 
i
 
i
image
 
 
img
 
img
 
li
 
li
 +
map
 +
ol
 
p
 
p
 
pre
 
pre
script
 
source
 
 
span
 
span
 +
strong
 +
sub
 
sup
 
sup
 
table
 
table
 +
tbody
 
td
 
td
 +
tfoot
 +
th
 +
thead
 
tr
 
tr
 +
tt
 +
u
 
ul
 
ul
 +
!--
 
</pre>
 
</pre>
 +
 +
The location of the tags file is passed to [[gwd#Starting a GeneWeb server|gwd]] at launch through the {{c|-allowed_tags}} parameter.
  
 
Note that those tags need not be legal HTML tags. GeneWeb will "accept" any tag in the supplied list, and will pass it on to the result page. Tags which are not listed in {{c|tags.txt}} will be transformed into {{c|&#38;lt;funnytag&#38;gt;}}, appearing as <nowiki><funnytag></nowiki> in a browser. Non HTML tags may carry text between the {{c|<funnytag}} and the closing {{c|>}}, which can be useful if the page returned by GeneWeb is read by a program doing some further processing on the returned text.
 
Note that those tags need not be legal HTML tags. GeneWeb will "accept" any tag in the supplied list, and will pass it on to the result page. Tags which are not listed in {{c|tags.txt}} will be transformed into {{c|&#38;lt;funnytag&#38;gt;}}, appearing as <nowiki><funnytag></nowiki> in a browser. Non HTML tags may carry text between the {{c|<funnytag}} and the closing {{c|>}}, which can be useful if the page returned by GeneWeb is read by a program doing some further processing on the returned text.

Latest revision as of 10:09, 10 February 2017

150px-Geographylogo svg.png Language: English

Within notes, it is possible to insert HTML tags which will be passed on to the resulting page. GeneWeb needs to be made aware of these tags, and as a result, will accept only those tags listed in a tags.txt file.

Tags are listed one per line, with no trailing space, and designate both the “opening” and “closing” tags.

GeneWeb's code contains a default list of allowed tags, but the tags.txt file must contain all concerned tags, not just additionnal tags.

a
area
b
blockquote
br
center
cite
dd
dir
div
dl
dt
em
font
hr
h1
h2
h3
h4
h5
h6
i
img
li
map
ol
p
pre
span
strong
sub
sup
table
tbody
td
tfoot
th
thead
tr
tt
u
ul
!--

The location of the tags file is passed to gwd at launch through the -allowed_tags parameter.

Note that those tags need not be legal HTML tags. GeneWeb will "accept" any tag in the supplied list, and will pass it on to the result page. Tags which are not listed in tags.txt will be transformed into &lt;funnytag&gt;, appearing as <funnytag> in a browser. Non HTML tags may carry text between the <funnytag and the closing >, which can be useful if the page returned by GeneWeb is read by a program doing some further processing on the returned text.


GeneWeb Manual

Rembrandt Old Man Reading a Book.jpg

Use and manage genealogical databases

Technical annex