Template:Semantic Forms URL demo: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(21 intermediate revisions by the same user not shown)
Line 19: Line 19:
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{| class="wikitable"
</noinclude><includeonly>{| class="wikitable"
! URL link text
! Template parameter name !! Property data type !! form input type !! Result
|-
! f_URL_link_text || string || default
|  [[Has URL link text::{{{f_URL_link_text|}}}]]  
|  [[Has URL link text::{{{f_URL_link_text|}}}]]  
|-
|-
! URL
! f_URL || URL || Default
|  [[Has URL::{{{f_URL|}}}]]  
|  [[Has URL::{{{f_URL|}}}]]  
|-
|-
! URL free string
! f_URL_free_string || string || default
|  [[Has URL location string::{{{f_URL_free_string|}}}]]  
|  [[Has URL location string::{{{f_URL_free_string|}}}]]  
|-
|-
! URL string URL input (same as above, but input checking with a regexp)
! f_URL_string_URL_input || string || regexp
|  [[Has URL location string::{{{f_URL_string_URL_input|}}}]]  
|  [[Has URL location string::{{{f_URL_string_URL_input|}}}]]  
|-
|-
! Wiki formatted link (works ok, but not good for SMW queries):
! f_Wiki_formatted_link || string || default
|  [[Has URL in wiki format::{{{f_link_wiki_format|}}}]]  
|  [[Has URL in wiki format::{{{f_link_wiki_format|}}}]]  
|}
|}


Combinations:
Location/link text combinations (good, bad and ugly ...)
{| class="wikitable"
{| class="wikitable"
! Source !! Result !! Works
! Source !! Result !! Works
|-
|-
| <source lang="bibtex">[{{{f_URL_free_string|}}} {{{f_URL_link_text|}}}] </source> || [{{{f_URL_free_string|}}} {{{f_URL_link_text|}}}] || ok
| <source lang="bibtex">[{{{f_URL_free_string|}}} {{{f_URL_link_text|}}}] </source> || [{{{f_URL_free_string|}}} {{{f_URL_link_text|}}}] || ok, no semantics
|-
| <source lang="bibtex">[{{{f_URL_string_URL_input|}}} {{{f_URL_link_text|}}}] </source> || [{{{f_URL_free_string|}}} {{{f_URL_link_text|}}}] || ok, no semantics
|-
| <source lang="bibtex">[{{{f_URL|}}} {{{f_URL_link_text|}}}] </source> || [{{{f_URL|}}} {{{f_URL_link_text|}}}] || ok, no semantics
|-
| <source lang="bibtex">{{{f_URL|web page}}}</source> || {{{f_URL|web page}}} || not ok, no semantics
|-
|-
| <source lang="bibtex">[{{{f_URL_string_URL_input|}}} {{{f_URL_link_text|}}}] </source> || [{{{f_URL_free_string|}}} {{{f_URL_link_text|}}}] || ok
| <source lang="bibtex">[[Has URL::{{{f_URL|web page}}}]]</source> ||[[Has URL::{{{f_URL|web page}}}]] || not ok, no semantics
|-
|-
| <source lang="bibtex">[{{{f_URL|}}} {{{f_URL_link_text|}}}] </source> || [{{{f_URL|}}} {{{f_URL_link_text|}}}] || ok
| <source lang="bibtex">[[Has URL::{{{f_URL|}}}|web page]]</source> ||[[Has URL::{{{f_URL|}}}|web page]]|| ok, one missing property
|-
|-
| <source lang="bibtex">{{{f_URL|web page}}}</source> || {{{f_URL|web page}}} || not ok
| <source lang="bibtex">[[Has URL::{{{f_URL|}}}| {{{f_URL_link_text|}}}]]</source> || [[Has URL::{{{f_URL|}}}| {{{f_URL_link_text|}}}]] || ok, but one missing property
|-
|-
| <source lang="bibtex">[[Has URL::{{{f_URL|web page}}}]]</source> ||[[Has URL::{{{f_URL|web page}}}]] || not ok
| <source lang="bibtex">[[[Has URL::{{{f_URL|}}}]] [[Has URL link text::{{{f_URL_link_text|}}}]]]</source> ||[[[Has URL::{{{f_URL|}}}]] [[Has URL link text::{{{f_URL_link_text|}}}]]]  || bad
|-
|-
| <source lang="bibtex">[[Has URL::{{{f_URL|}}}|web page]]</source> ||[[Has URL::{{{f_URL|}}}|web page]]|| ok
| <source lang="bibtex" enclose="div">[[Has URL::{{{f_URL|}}}| {{{f_URL_link_text|}}}]] <span style="display:none">[[Has URL link text::{{{f_URL_link_text|}}}]] </span></source> || [[Has URL::{{{f_URL|}}}| {{{f_URL_link_text|}}}]] <span style="display:none">[[Has URL link text::{{{f_URL_link_text|}}}]]</span> || ok, but relies on CSS
|-
|-
| <source lang="bibtex">[[Has URL::{{{f_URL|}}}| {{{f_URL_link_text|}}}]]</source> || [[Has URL::{{{f_URL|}}}| {{{f_URL_link_text|}}}]] || ok
| <source lang="bibtex" enclose="div">
{{#set:Has URL={{{f_URL|}}} }}
{{#set:Has URL link text={{{f_URL_link_text|}}} }}
[{{{f_URL}}} {{{f_URL_link_text}}}]</source>
| {{#set:Has URL={{{f_URL|}}} }}
{{#set:Has URL link text={{{f_URL_link_text|}}} }}
[{{{f_URL}}} {{{f_URL_link_text}}}]
| best solution (thanx to Yaron Koren)
|}
|}


[[Category:Semantic Forms URL demo]]
[[Category:Semantic Forms URL demo]]
</includeonly>
</includeonly>

Latest revision as of 22:20, 18 July 2013

This is the "Semantic Forms URL demo" template. Please do not create new instances of this template. It is just a demo !

See also:

It should be called in the following format:

{{Semantic Forms URL demo
|f_URL_link_text=
|f_URL=
|f_URL_free_string=
|f_URL_string_URL_input=
|f_link_wiki_format=
}}

Edit the page to see the template text.