Quantcast

SMW: using pageforms with concept

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

SMW: using pageforms with concept

André Fincato
Hi!

I just discovered the power of the special page Concepts, and would like to know if it’s possible to make use of them by using a form with the PageForm extension. E.g, can I make a form that produces a new Concept page?

Reading from the documentation, the only thing said is this:

> Using concepts with Semantic Forms
> Concepts are also a useful feature in conjunction with the Semantic Forms <https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Forms> extension:
> they can be used to define the set of values suggested through autocompletion. See this help page <https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#.27field.27_tag>
> they can also be used as a "human-readable" argument in a query form. See this help page <https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Creating_query_forms>
Thanks!
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: SMW: using pageforms with concept

Marco Ammon
Hi!

I don't think there is a dedicated function for it in Page Forms, but
you can wrap the concept in a template.

I have already done that many times and it works like a charm:
Basically, you have a template containing the "{{#concept: ......}}"
definition (eg [0]) and a completely normal form for that template (eg
[1]). When using that form, you have to enter
"Concept:WHATEVER_YOU_WANT_TO_PUT_HERE" as page. A concept page created
through a form then looks like [2] and works like any other concept.
What really works well with it is the {{#autoedit}} parser function,
which allows you to create a concept with a single click. We use this to
automatically show a button to generate a concept page when it doesn't
exist yet. An example can be found at [3].

I hope this help you!

Marco Ammon



[0]
http://wiki.teamliquid.net/dota2/index.php?title=Template:Player_results_concept&action=edit
[1]
http://wiki.teamliquid.net/dota2/index.php?title=Form:Player%20results%20concept&action=edit
[2]
http://wiki.teamliquid.net/dota2/index.php?title=Concept:Abed_tournament_results&action=edit
[3]
http://wiki.teamliquid.net/dota2/index.php?title=Template:Player_results_table&action=edit

Am 19.04.2017 um 18:51 schrieb André Fincato:

> Hi!
>
> I just discovered the power of the special page Concepts, and would like to know if it’s possible to make use of them by using a form with the PageForm extension. E.g, can I make a form that produces a new Concept page?
>
> Reading from the documentation, the only thing said is this:
>
>> Using concepts with Semantic Forms
>> Concepts are also a useful feature in conjunction with the Semantic Forms <https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Forms> extension:
>> they can be used to define the set of values suggested through autocompletion. See this help page <https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#.27field.27_tag>
>> they can also be used as a "human-readable" argument in a query form. See this help page <https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Creating_query_forms>
> Thanks!
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Semediawiki-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Loading...